package cn.iocoder.yudao.module.mini.convert.address;

import java.util.*;

import cn.iocoder.yudao.framework.common.pojo.PageResult;

import cn.iocoder.yudao.module.mini.dal.dataobject.address.MiniAddressDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import cn.iocoder.yudao.module.mini.controller.admin.address.vo.*;

/**
 * 用户地址 Convert
 *
 * @author dzy
 */
@Mapper
public interface AddressConvert {

    AddressConvert INSTANCE = Mappers.getMapper(AddressConvert.class);

    MiniAddressDO convert(AddressCreateReqVO bean);

    MiniAddressDO convert(AddressUpdateReqVO bean);

    AddressRespVO convert(MiniAddressDO bean);

    List<AddressRespVO> convertList(List<MiniAddressDO> list);

    PageResult<AddressRespVO> convertPage(PageResult<MiniAddressDO> page);

    List<AddressExcelVO> convertList02(List<MiniAddressDO> list);

}
